package cn.edu.buaa.cnsatm.traffic_big_data_server;

import cn.edu.buaa.cnsatm.traffic_big_data_server.aviation.service.AirportService;
import cn.edu.buaa.cnsatm.traffic_big_data_server.highway.service.HighwayCongestionService;
import cn.edu.buaa.cnsatm.traffic_big_data_server.highway.service.HighwayTSService;
import cn.edu.buaa.cnsatm.traffic_big_data_server.util.DateUtil;
import cn.edu.buaa.cnsatm.traffic_big_data_server.util.JDBCUtil;
import cn.edu.buaa.cnsatm.traffic_big_data_server.util.PropertiesUtil;
import cn.edu.buaa.cnsatm.traffic_big_data_server.util.WebSpiderUtil;
import cn.edu.buaa.cnsatm.traffic_big_data_server.waterway.service.SeaStatusService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;
import java.net.InetAddress;
import java.sql.SQLException;
import java.text.ParseException;

@SpringBootApplication
public class TrafficBigDataServerApplication {
    public static void main(String[] args) throws SQLException, IOException, ParseException, InterruptedException {
        SpringApplication.run(TrafficBigDataServerApplication.class, args);
        long start = System.currentTimeMillis();
        JDBCUtil.startConnection();//启动postgis数据库连接
        JDBCUtil.startOracleConnection();//启动oracle数据库连接
        System.out.println("数据库连接用时："+(System.currentTimeMillis() - start)+"ms");
        /*初始化BZDW配置文件*/
        //BZDWService.initBZDWConfigJson();
    }
}
